async function testSometing() {
  console.log("执行testSometing");
  return "testSometing";
}

async function testAsync() {
  console.log("执行testAsync");
  return Promise.resolve("hello async");
}

async function test() {
  console.log("test start...");
  const v1 = await testSometing();
  console.log(v1);
  const v2 = await testAsync();
  console.log(v2);
  console.log(v1, v2);
}

test();

var promise = new Promise((resolve) => {
  console.log("promise start...");
  resolve("promise");
});
promise.then((val) => console.log(val));

console.log("test end...");

/// 同步任务先执行
// test start
// 执行testSometing
// promise start
// test end
// testSometime
// promise ❌
// 执行testAsync ❌ 这两个反过来就对了. 因为在微任务栈道中, 先试 testSometing -> p1 -> testAsync
// hello async
// testSometime hellow async
